home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / KELLIS / KEMD.ZIP / KEMD / SETUP < prev    next >
Encoding:
Text File  |  1997-01-08  |  16.9 KB  |  704 lines

  1. #!/bin/sh
  2. #
  3. # This script installs Mint KGMD
  4. #
  5. # This script is automatically executed by mint.cnf when mint1.11
  6. # boots (mint.tos on the boot disk).
  7. #
  8. # The RAM-Disk just finished before the uncompress process, the Links
  9. # are ready and corrects. A workable environent is already possible
  10. #
  11. # You already have the following binary files.
  12. #
  13. # sh, tar, gzip, cat, [, cp.
  14. #
  15. #
  16. # trap "" 1 2 15
  17. # trap error 0
  18. #
  19.  
  20. # First we activate the cursor
  21. echo -n e
  22. # then we activate the auto-wrap
  23. echo -n v
  24.  
  25. umask 022
  26.  
  27. PATH="/bin:/usr/etc" ; export PATH
  28.  
  29. # Fundamental process error
  30. # One way or the other, it doesn't work.... Fixme!
  31.  
  32. error()
  33. {
  34. case $? in
  35.     0)
  36.         echo Perfect, Everything is good!
  37.         ;;
  38.     *)
  39.         echo Sometimes it doesn\'t work.
  40.         echo The installation has not been completed.
  41.         echo -n 'Please press RETURN...' ; read j
  42.         exit 1
  43. esac
  44. }
  45.  
  46. cat << EOF
  47.  
  48.              Welcome in the installation of the
  49.               English distribution of Knarf / MiNT
  50.  
  51. First, you need a Minix partition where the distribution will decompress.
  52. This partition should be at least 32 Mo, this is the minimum to be able to
  53. work.
  54.  
  55. Rem: The Backspace (^H) doesn't work as well as the line delete (^U).
  56. Don't be scared, the mistakes will always be fixable.
  57.  
  58.  
  59. EOF
  60.  
  61. #
  62. # First the choice of the partition
  63. #
  64.  
  65. echo What partition should be converted ?
  66. echo Enter the disk letter of the partition without the colon.
  67. echo The available letters start from disk C to P.
  68. echo
  69. echo
  70.  
  71. while [ -z "$MINIXFS" ] ; do
  72.     echo -n 'Please enter a valid letter: ' ; read j
  73.  
  74.     case $j in
  75.         [C-Pc-p])
  76.             MINIXFS=$j
  77.             ;;
  78.         *)
  79.             echo incorrect choice!
  80.             MINIXFS=""
  81.     esac
  82.  
  83.     if [ ! -z "$MINIXFS" ] ; then # Nur wenn Eingabe sinnvoll.
  84.  
  85.         echo on the partition $MINIXFS: the following files are still present...
  86.         ls -la /$MINIXFS
  87.  
  88.         echo
  89.         echo Are you sure you want to convert the drive $MINIXFS: into a Minix
  90.         echo partition? All the data of this partition will be gone forever!!
  91.         echo
  92.         echo The possible answers are Y\)es N\)o C\)ancel and !\)Shell-Escape.
  93.         echo
  94.         echo -n 'Your choice [y/N/c/!]: ' ; read j
  95.  
  96.         case $j in
  97.             [Yy])
  98.                 echo Very good! We can start!
  99.                 ;;
  100.             [Cc])
  101.                 echo The installation won\'t be finnished.
  102.                 exit 1
  103.                 ;;
  104.             !)
  105.                 echo With the choice \'exit\' you can go backward in the installation process
  106.                 echo Then you have to give a new letter.
  107.                 /bin/sh
  108.                 MINIXFS=""
  109.                 ;;
  110.             *)
  111.                 echo No? Then choose an other one!
  112.                 MINIXFS=""
  113.         esac
  114.     fi # Sinnvolle Eingabe
  115. done # $MINIXFS
  116.  
  117. #
  118. # choice of the type for the filesystem.
  119. #
  120.  
  121. echo
  122. echo Do you want to install on the partition $MINIXFS a V1 filesystem or V2?
  123. echo
  124. echo In general, you\'ll choose the V2 filesystem, especially if
  125. echo you want to convert a 64 Mb partition or bigger.
  126. echo
  127.  
  128. while [ -z "$V" ] ; do
  129.     echo -n 'Please, what filesystem do you choose [1 or 2]:' ; read j
  130.  
  131.     case $j in
  132.         [12])
  133.             V=$j
  134.             ;;
  135.         *)
  136.             echo Incorrect answer! Try again please!
  137.     esac
  138.  
  139. done # Filesystemtyp
  140.  
  141. #
  142. # Even if correct, we have to treat the command.
  143. #
  144.  
  145. case $V in
  146.     1)
  147.         V=""
  148.         ;;
  149.     2)
  150.         V="-V"
  151.         ;;
  152.     *)
  153.         echo Unexpected error!
  154.         exit 1
  155. esac
  156.  
  157. #
  158. # Possible number of characters for the filenames
  159. #
  160.  
  161. echo
  162. echo The Minix partition allows the use for long filenames.
  163. echo You can even fix the maximal lenght for the filename.
  164. echo The longer the filename will be the slower the disk access
  165. echo And the bigger the space each file will take.
  166. echo
  167. echo
  168. echo The maximum length of the filenames are calculated from this
  169. echo formula 'max = (n*16)-2', where n is a power of 2.
  170. echo
  171. echo Thus we obtain the possible combinations:
  172. echo  1:  14 characters
  173. echo  2:  30 characters
  174. echo  4:  62 characters
  175. echo  8: 126 characters [this case wasn\'t anticipated]
  176. echo
  177. echo You must not choose 14 characters. In Fact you can only choose
  178. echo 30 or 62 characters. To use 126 characters, you have to recompile
  179. echo minix.xfs.
  180. echo
  181.  
  182. while [ -z "$MAXLEN" ] ; do
  183.     echo -n 'SVP choose the multiple n [1, 2 our 4]: ' ; read j
  184.  
  185.     case $j in
  186.         [124])
  187.             MAXLEN=$j
  188.             ;;
  189.         *)
  190.             echo Incorrect choice! Try again !
  191.     esac
  192. done # Lenght of the filename
  193.  
  194. #
  195. # Process the parameters of the command line.
  196. #
  197.  
  198. # MAXLEN="-n $MAXLEN"
  199.  
  200. #
  201. # protection mechanism
  202. #
  203.  
  204. echo
  205. echo The installed partition can be protected of an access out of
  206. echo Mint and MinixFS, \(for instance under SingleTOS\(w/o mint\)
  207. echo or Mag!C\). For this we have to trick the GEMDOS in making him 
  208. echo to believe that there are no fat input available.
  209. echo Also, if you have a XHDI compatible harddisk driver
  210. echo \(HDDRIVER or HuSHI\), ???It\'s unfortunate to not include
  211. echo the parameter -P???.
  212.  
  213. echo -n 'Do you want to use the protection mechanism? [Y/n]: ' ; read j
  214.  
  215. case $j in
  216.     [Nn])
  217.         PROTECT=""
  218.         ;;
  219.     *)
  220.         PROTECT="-P"
  221. esac
  222.  
  223. COMMANDLINE="-n $MAXLEN $V $PROTECT ${MINIXFS}:"
  224.  
  225. echo
  226. echo Very good! Minit will be launch with the following parameters
  227. echo minit $COMMANDLINE
  228. echo
  229. echo answer the next question only by pressing the key
  230. echo \`y\' \(w/o RETURN\). The pressed key won\'t be displayed.
  231. echo The initialisation of the partition will take a moment...
  232. echo
  233.  
  234. minit $COMMANDLINE
  235.  
  236. error
  237.  
  238. echo
  239. echo Where is the kit of the distribution\(Knarf german kit\)?
  240. echo
  241. echo Please indicate the directory like this /\<drive\>/\<directory\>.
  242. echo
  243. echo If the distribution kit is on the drive g: in the main
  244. echo directory,  then indicate  "/g".
  245. echo If the distribution kit is on the drive d: in the directory
  246. echo download, then indicate "/d/download".
  247. # echo
  248. # echo A copy of the distribution kit on disks is not implemented yet
  249. # echo
  250. # echo If before the installation you don\'t have enough space
  251. # echo on your Harddrive partition, then indicate "/a" ou "/b", the
  252. # echo distribution kit on disk will be then copied on the Minix
  253. # echo partition freshly created. [This option is not implemented, yet !]
  254. echo
  255.  
  256. while [ -z "$INSTALL" ] ; do
  257.  
  258. echo -n 'SVP indicate the directory: ' ; read j
  259.  
  260. case $j in
  261.     "/[ab]")
  262.         echo The copy from a or b is too slow!.
  263.         echo Please try again..
  264.         ;;
  265.     *)
  266.         if [ -f /${j}/basic.aa -o -f /${j}/basic.tgz ] ; then
  267.             echo Very good, We can start!
  268.             # Ein Slash zu viel schadet nicht.
  269.             INSTALL="/${j}"
  270.         else
  271.             echo I don\'t find the Basic package in the directory $j!
  272.             echo Please try again..
  273.         fi
  274. esac
  275.  
  276. done # $INSTALL
  277.  
  278. echo
  279. echo Now the system base filestems will be installed on the chosen partition...
  280. echo
  281.  
  282. tar -C /${MINIXFS} -xzpf /tmp/filesys.tgz
  283.  
  284. error
  285.  
  286. echo
  287. echo Then the Basic distribution will be uncompressed without running anything...
  288. echo
  289.  
  290. if [ -f ${INSTALL}/basic.aa -o -f ${INSTALL}/basic.tgz ] ; then
  291.   echo It might take a moment...
  292.   if [ -f ${INSTALL}/basic.aa ] ; then
  293.     cat ${INSTALL}/basic.??  | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/basic.log 2> /${MINIXFS}/var/db/kgmd/basic.errlog
  294.   else
  295.     cat ${INSTALL}/basic.tgz | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/basic.log 2> /${MINIXFS}/var/db/kgmd/basic.errlog
  296.   fi
  297.   echo
  298.   if [ -s /${MINIXFS}/var/db/kgmd/basic.errlog ] ; then
  299.     echo
  300.     echo Here are the errors while uncompressing:
  301.     echo
  302.     more /${MINIXFS}/var/db/kgmd/basic.errlog
  303.     echo
  304.     echo This information is in the file /${MINIXFS}/var/db/kgmd/basic.errlog
  305.     echo Please, check.
  306.     echo
  307.   else
  308.     echo Perfect, Everything\'s fine!
  309.   fi
  310. fi
  311.  
  312. # minit sets by default: 777
  313.  
  314. /${MINIXFS}/usr/bin/chmod 755 /${MINIXFS}
  315.  
  316. # Creation of the links and the new PATH.
  317.  
  318. RM="/${MINIXFS}/usr/bin/rm"
  319. LN="/${MINIXFS}/usr/bin/ln -fs"
  320. MV="/${MINIXFS}/usr/bin/mv"
  321.  
  322. $RM /bin /etc /home /usr /tmp
  323.  
  324. $LN /${MINIXFS}/usr/bin /bin
  325. $LN /${MINIXFS}/etc     /etc
  326. $LN /${MINIXFS}/home    /home
  327. $LN /${MINIXFS}/usr     /usr
  328. $LN /${MINIXFS}/tmp     /tmp
  329. $LN /${MINIXFS}/var     /var
  330.  
  331. PATH='/bin:/usr/ucb:/usr/etc' ; export PATH
  332.  
  333. # It's possible that the archives links could be misplaced.
  334. # This will be corrected here.
  335.  
  336. cd /${MINIXFS}/usr/bin
  337.  
  338. # $RM -f sh
  339. $LN ash sh
  340.  
  341. # $RM -f ps
  342. $LN ps.mint ps
  343.  
  344. # $RM -f nice
  345. $LN nice.gnu nice
  346.  
  347. # $RM -f stty
  348. # $LN stty.gnu stty
  349.  
  350. # $RM -f su
  351. $LN su.bsd su
  352.  
  353. # New links placed
  354.  
  355. cd /${MINIXFS}/usr/ucb
  356.  
  357. # $RM -f finger
  358. $LN finger.bsd finger
  359.  
  360. # $RM -f talk
  361. $LN talk.bsd talk
  362.  
  363. echo
  364. echo The installation of the part Basic was successful. Very good!
  365.  
  366. while [ -z "$OK" ] ; do
  367.  
  368. echo
  369. echo Before the next step in the installation, we need to create the
  370. echo configuration files. Please answer these following questions:
  371. echo
  372. echo
  373. echo First, a \`normal\' user will be created, it won\'t have the
  374. echo rights of the root, but with \`su\' it will. What will be the
  375. echo Username for this account?
  376. echo
  377. echo The Username must be in lower case and must not exceed 8
  378. echo caracters. It can not also start by \`-\'.
  379. echo
  380. echo -n 'Username: ' ; read j
  381. echo
  382.  
  383. ACCOUNT=$j
  384.  
  385. echo What is the complete name of the user? Generally it will be
  386. echo the first name then the last name.
  387. echo
  388. echo -n 'First name  : ' ; read i
  389. echo -n 'Last name   : ' ; read j
  390. echo
  391.  
  392. USERNAME="$i $j"
  393.  
  394. echo Now you have to choose a Hostname for this computer.
  395. echo The Hostname must not exceed 7 characters.
  396. echo The Hostname can, under Mint, be easily modified.
  397. echo
  398. echo -n 'Hostname: ' ; read j
  399. echo
  400.  
  401. HNAME=$j
  402.  
  403. echo What is your boot drive\? The path is only needed for
  404. echo configuration files, the installation won\'t touch this partition.
  405. echo Please Give the letter of the boot drive in lower case without
  406. echo the colon.
  407. echo Generaly the drive \`c\' will be used.
  408. echo
  409. echo -n 'Boot partition: ' ; read j
  410. echo
  411.  
  412. BOOT=$j
  413.  
  414. echo
  415. echo Your data will be saved in the configuration files:
  416. echo
  417. echo
  418. echo Accountname : ${ACCOUNT}
  419. echo Realname    : ${USERNAME}
  420. echo Hostname    : ${HNAME}
  421. echo Boot Drive  : ${BOOT}
  422.  
  423. echo -n 'Is it correct [Y/n]?' ; read j
  424.  
  425. case $j in
  426.     [Nn])
  427.         OK=""
  428.         ;;
  429.     *)
  430.         OK="OK"
  431. esac
  432.  
  433. done # OK=OK
  434.  
  435. MODEM1="# "
  436. MODEM2="# "
  437. SERIAL1="# "
  438. SERIAL2="# "
  439. MIDI="# "
  440.  
  441. # Sparen wir uns hier mal den tr...
  442.  
  443. if [ -c /dev/modem1 ] ; then
  444.     echo interface /dev/modem1 found...
  445.     MODEM1=""
  446. fi
  447.  
  448. if [ -c /dev/modem2 ] ; then
  449.     echo interface /dev/modem2 found...
  450.     MODEM2=""
  451. fi
  452.  
  453. if [ -c /dev/serial1 ] ; then
  454.     echo interface /dev/serial1 found...
  455.     SERIAL1=""
  456. fi
  457.  
  458. if [ -c /dev/serial2 ] ; then
  459.     echo interface /dev/serial2 found...
  460.     SERIAL2=""
  461. fi
  462.  
  463. if [ -c /dev/midi ] ; then
  464.     echo interface /dev/midi found...
  465.     MIDI=""
  466. fi
  467.  
  468. # echo
  469. # echo If you want to use the software CoNnect under KGMD, respect the
  470. # echo notes in the file /${MINIXFS}/boot/multitos/mintkgmd.cnf.
  471.  
  472. for i in \
  473. boot/multitos/mintkgmd.cnf.in \
  474. etc/passwd.in \
  475. etc/group.in \
  476. etc/hostname.in \
  477. etc/hosts.in \
  478. etc/fstab.in
  479. do
  480.  
  481. ##ACCOUNT##  : Login name for the user
  482. ##USERNAME## : Real name for the user
  483. ##HNAME##     : Local name for the host
  484. ##MINIXFS##  : Drive letter for the Minix filesystem
  485. ##MODEM1##    : Computer to modem1 "", otherwise "# "
  486. ##MODEM2##    : Computer to modem2 "", otherwise "# "
  487. ##SERIAL1##  : Computer to serial1 "", otherwise "# "
  488. ##SERIAL2##  : Computer to serial2 "", otherwise "# "
  489.  
  490. cat /$MINIXFS/$i | sed \
  491.     -e "s/##ACCOUNT##/$ACCOUNT/g"\
  492.     -e "s/##USERNAME##/$USERNAME/g"\
  493.     -e "s/##HNAME##/$HNAME/g"\
  494.     -e "s/##MINIXFS##/$MINIXFS/g"\
  495.     -e "s/##MODEM1##/$MODEM1/g"\
  496.     -e "s/##MODEM2##/$MODEM2/g"\
  497.     -e "s/##SERIAL1##/$SERIAL1/g"\
  498.     -e "s/##SERIAL2##/$SERIAL2/g"\
  499.     -e "s/##MIDI##/$MIDI/g"\
  500.     > /${MINIXFS}/`dirname $i`/`basename $i .in`
  501.  
  502. case $? in
  503.     0)
  504.         rm -f /${MINIXFS}/$i
  505.         ;;
  506.     *)
  507.         echo Sometimes it doesn\'t work!
  508.         echo The installation will not be completed.
  509.         exit 1
  510. esac
  511.  
  512. done
  513.  
  514. #
  515. # Links correction
  516. #
  517. if [ -d /${BOOT}/multitos ] ; then
  518.     rm -f /${MINIXFS}/usr/multitos
  519.     ln -s /${BOOT}/multitos /${MINIXFS}/usr/multitos
  520. else
  521.     echo Attention: /${BOOT}/multitos doesn\'t exist yet.
  522.     echo Please place by hand the multitos directory link
  523.     echo of your boot drive to /usr/multitos.
  524. fi
  525. #
  526. # Change the name of Home Directory
  527. #
  528.  
  529. mv /home/user /home/$ACCOUNT
  530. chown $ACCOUNT /home/$ACCOUNT
  531.  
  532. echo
  533. echo Now, the COMPILER part will be uncompressed...
  534. echo
  535.  
  536. if [ -f ${INSTALL}/compiler.aa -o -f ${INSTALL}/compiler.tgz ] ; then
  537.   echo This will take a little while...
  538.   if [ -f ${INSTALL}/compiler.aa ] ; then
  539.     cat ${INSTALL}/compiler.?? | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/compiler.log 2> /${MINIXFS}/var/db/kgmd/compiler.errlog.1
  540.   else
  541.     cat ${INSTALL}/compiler.tgz | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/compiler.log 2> /${MINIXFS}/var/db/kgmd/compiler.errlog.1
  542.   fi
  543.   echo
  544.   #
  545.   # Here is a list of some stupid errors "permission denied" ;(
  546.   #
  547.   grep -v permission /${MINIXFS}/var/db/kgmd/compiler.errlog.1 > /${MINIXFS}/var/db/kgmd/compiler.errlog.2
  548.   if [ -s /${MINIXFS}/var/db/kgmd/compiler.errlog.2 ] ; then
  549.     echo
  550.     echo The following errors are in the file overwriten by the uncompressing process.:
  551.     echo
  552.     more /${MINIXFS}/var/db/kgmd/compiler.errlog.2
  553.     echo
  554.     echo All this is in the file /${MINIXFS}/var/db/kgmd/compiler.errlog.2.
  555.     echo please check.
  556.     echo
  557.   else
  558.     echo Perfect, Everything\'s fine!
  559.   fi
  560. else
  561.   echo Hoppla! There\'s nothing to install here!
  562.   echo Well, no Compiler. It\'s like you want....
  563. fi
  564.  
  565. echo
  566. echo Now the NET package will be uncompressed...
  567. echo
  568.  
  569. # The following links will probably get deleted
  570.  
  571. $RM -f /${MINIXFS}/usr/ucb/finger
  572. $RM -f /${MINIXFS}/usr/ucb/talk
  573.  
  574. if [ -f ${INSTALL}/net.aa -o -f ${INSTALL}/net.tgz ] ; then
  575.   echo It might take a little while...
  576.   if [ -f ${INSTALL}/net.aa ] ; then
  577.     cat ${INSTALL}/net.??  | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/net.log 2> /${MINIXFS}/var/db/kgmd/net.errlog
  578.   else
  579.     cat ${INSTALL}/net.tgz | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/net.log 2> /${MINIXFS}/var/db/kgmd/net.errlog
  580.   fi
  581.   echo
  582.   if [ -s /${MINIXFS}/var/db/kgmd/net.errlog ] ; then
  583.     echo
  584.     echo The following errors are in the overwritten files because of
  585.     echo the uncompress process:
  586.     more /${MINIXFS}/var/db/kgmd/net.errlog
  587.     echo
  588.     echo The description is in the file /${MINIXFS}/var/db/kgmd/net.errlog.
  589.     echo Please check.
  590.     echo
  591.   else
  592.     echo Perfect, Everything was fine!
  593.   fi
  594.  
  595.   # Corrected Links ( again)
  596.  
  597.   ( cd /${MINIXFS}/usr/ucb ; $LN finger.net finger ; $LN talk.net talk )
  598.  
  599.   # For ncftp - This is probably not necessary...
  600.   # As well in /etc/host FQDN should be there...
  601.   # And /etc/domainname is also a thing to fill...
  602.  
  603.   cp /etc/hostname /etc/host
  604.  
  605.   # And here again, weil es im Artikel nicht steht.
  606.   touch /etc/ppp/options
  607.  
  608. else
  609.   echo Hoppla! There is nothing to install!
  610.   echo Well ok, no Net. As you want...
  611. fi
  612.  
  613. echo
  614. echo Now, uncompress the Manual package...
  615. echo
  616.  
  617. if [ -f ${INSTALL}/manual.aa -o -f ${INSTALL}/manual.tgz ] ; then
  618.   echo This will take a little while...
  619.   if [ -f ${INSTALL}/manual.aa ] ; then
  620.     cat ${INSTALL}/manual.??  | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/manual.log 2> /${MINIXFS}/var/db/kgmd/manual.errlog
  621.   else
  622.     cat ${INSTALL}/manual.tgz | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/manual.log 2> /${MINIXFS}/var/db/kgmd/manual.errlog
  623.   fi
  624.   echo
  625.   if [ -s /${MINIXFS}/var/db/kgmd/manual.errlog ] ; then
  626.     echo
  627.     echo The following errors are in the overwritten files because of
  628.     echo the uncompress process:
  629.     more /${MINIXFS}/var/db/kgmd/manual.errlog
  630.     echo
  631.     echo These errors are in /${MINIXFS}/var/db/kgmd/manual.errlog.
  632.     echo Please, check it.
  633.     echo
  634.   else
  635.     echo Perfect, Everything was fine!
  636.   fi
  637. else
  638.    echo Hoppla! There\'s nothing to install!
  639.    echo Well, no Manual. As you want...
  640. fi
  641.  
  642. echo
  643. echo Now, uncompressing the X11R5 package...
  644. echo
  645.  
  646. if [ -f ${INSTALL}/x11r5.aa -o -f ${INSTALL}/x11r5.tgz ] ; then
  647.   echo this will take a little while...
  648.   if [ -f ${INSTALL}/x11r5.aa ] ; then
  649.     cat ${INSTALL}/x11r5.??  | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/x11r5.log 2> /${MINIXFS}/var/db/kgmd/x11r5.errlog
  650.   else
  651.     cat ${INSTALL}/x11r5.tgz | point | gzip -cd | tar -C /${MINIXFS} -xvpf - > /${MINIXFS}/var/db/kgmd/x11r5.log 2> /${MINIXFS}/var/db/kgmd/x11r5.errlog
  652.   fi
  653.   echo
  654.   if [ -s /${MINIXFS}/var/db/kgmd/x11r5.errlog ] ; then
  655.     echo
  656.     echo The following errors are in the overwritten files because of
  657.     echo the uncompress process:
  658.     more /${MINIXFS}/var/db/kgmd/x11r5.errlog
  659.     echo
  660.     echo This errors are in /${MINIXFS}/var/db/kgmd/x11r5.errlog.
  661.     echo Please check.
  662.     echo
  663.   else
  664.     echo Perfect, Everything\'s fine!
  665.   fi
  666.   cd /usr/lib
  667.   # Why Evil comes here "file exists"??
  668.   ln -fs ./X11/*.a . >> /${MINIXFS}/var/db/kgmd/x11r5.log 2>> /${MINIXFS}/var/db/kgmd/x11r5.errlog
  669. else
  670.   echo Hoppla! There\'s nothing to install!
  671.   echo Well, no X11R5. As you want...
  672. fi
  673.  
  674. cd /
  675.  
  676. #
  677. # npasswd needs syslogd
  678. #
  679.  
  680. syslogd ; sleep 2
  681.  
  682. echo
  683. echo Now please, a password for root \(5 characters minimum which one in upper case\):
  684. echo
  685. passwd root
  686. echo
  687. echo And now for the user ${ACCOUNT} \(5 characters minimum which one in upper case\):
  688. echo
  689. passwd ${ACCOUNT}
  690. echo
  691. echo Now, please, go in the directory /${MINIXFS}/boot with cd
  692. echo and there follow the instructions of \(KGMD.txt\) file
  693. echo section 4 about your bootdrive ${BOOT}: copy.
  694. echo
  695. echo If needed. Delete the directory /${BOOT}/mint and remove all the
  696. echo \*.xdd and \*.xfs of /${BOOT}.
  697. echo
  698. echo After this, you can reboot the computer \(reboot\).
  699. echo
  700.  
  701. HOME="/home/root" ; export HOME
  702.  
  703. exec /bin/tcsh
  704.